import java.util.LinkedList;
import java.util.Queue;

public class Test {
    public static void main(String[] args) {
        RoundRobinQueue roundRobinQueue=new RoundRobinQueue(5);
        roundRobinQueue.enQueue(2);
        roundRobinQueue.enQueue(4);
        roundRobinQueue.enQueue(6);
        roundRobinQueue.enQueue(8);
        roundRobinQueue.enQueue(10);
        roundRobinQueue.print();
        roundRobinQueue.deQueue();
        roundRobinQueue.print();
        System.out.println(roundRobinQueue.front);
        System.out.println(roundRobinQueue.rear());

    }
    public static void main1(String[] args) {
        Queue<Integer> queue=new LinkedList<>();
        queue.offer(1);
        queue.offer(2);
        queue.offer(3);
        System.out.println(queue.size());
        System.out.println(queue);
        queue.poll();
        System.out.println(queue);
        System.out.println(queue.peek());
    }
    public static void main2(String[] args) {
        MyQueue queue=new MyQueue();
        queue.offer(11);
        queue.offer(22);
        queue.offer(33);
        queue.print();
        System.out.println(queue.size);
        queue.poll();
        queue.print();
        System.out.println(queue.peek());
    }
}
